package com.wtwd.device.service;


import com.wtwd.device.model.entity.Step;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 每日步数 服务类
 * </p>
 *
 * @author zdl
 * @since 2021-08-31
 */
public interface StepService {
    boolean save(Step step);

    Step getByDeviceAndDate(Long deviceId, String date);

    List<Step> listByDeviceAndDate(Long deviceId, String startDate, String endDate);

    List<Step> listByDeviceAndMonth(Long deviceId, String month);

    Integer clearStepByDate(String date);

    List<Map<String, Object>> getStepInfoByUserIdList(ArrayList<Long> friendIdList, String yestTime);

    Step getStepInfoByDeviceIdAndTime(Long id, String time);

    Step getDayMaxStepByDeviceId(Long deviceId);

    Integer getTotalStepByDeviceId(Long id);

    Integer deleteStepByDeviceId(Long id);
}
